package com.edu.service.queryanswer;

import com.edu.entity.queryanswer.Query;
import com.edu.entity.queryanswer.Querysc;
import com.edu.entity.user.EduUser;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface QueryService {
    List<Query> findQueryByName(String querytitle,Integer page,Integer size);
    void insertquery(Query query);
    List<Query> queryList(Integer page,Integer size);
    Query findById(Integer id);
    int gettotal(String queryame);
    int selecttotal(String queryname);
    List<Query> pageList();
    List<Query> reslovequery(Integer page,Integer size);
    EduUser findUserByPrin(String username);
    void insertCollect(Querysc querysc);
    void broswerin(int id);
}
